package com.daoeping.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Usr_skill_detail entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "usr_skill_detail", catalog = "daoeping")
public class Usr_skill_detail implements java.io.Serializable {

	// Fields

	private Integer id;
	private Usr_userProduction usr_userProduction;
	private Bsc_skill bsc_skill;
	private Bsc_grade bsc_grade;
	private Bsc_workyear bsc_workyear;
	private String description;

	// Constructors

	/** default constructor */
	public Usr_skill_detail() {
	}

	/** full constructor */
	public Usr_skill_detail(Usr_userProduction usr_userProduction, Bsc_skill bsc_skill,
			Bsc_grade bsc_grade, Bsc_workyear bsc_workyear, String description) {
		this.usr_userProduction = usr_userProduction;
		this.bsc_skill = bsc_skill;
		this.bsc_grade = bsc_grade;
		this.bsc_workyear = bsc_workyear;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	@ManyToOne
	@JoinColumn(name = "userproduction_id")
	public Usr_userProduction getUsr_userProduction() {
		return usr_userProduction;
	}

	public void setUsr_userProduction(Usr_userProduction usr_userProduction) {
		this.usr_userProduction = usr_userProduction;
	}
	
	@ManyToOne
	@JoinColumn(name = "skill_id")
	public Bsc_skill getBsc_skill() {
		return bsc_skill;
	}

	public void setBsc_skill(Bsc_skill bsc_skill) {
		this.bsc_skill = bsc_skill;
	}
	
	@ManyToOne
	@JoinColumn(name = "grade_id")
	public Bsc_grade getBsc_grade() {
		return bsc_grade;
	}

	public void setBsc_grade(Bsc_grade bsc_grade) {
		this.bsc_grade = bsc_grade;
	}

	@ManyToOne
	@JoinColumn(name = "work_year_id")
	public Bsc_workyear getBsc_workyear() {
		return bsc_workyear;
	}

	public void setBsc_workyear(Bsc_workyear bsc_workyear) {
		this.bsc_workyear = bsc_workyear;
	}

	@Column(name = "description", length = 2000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}